package com.woniuxy.ptapp.common.exception;

import lombok.Data;
public enum EnumExceptionCode {
    ClaessIdWrong(3002,"该订单编号不属于该用户"),
    AppealSaveFail(3003,"申诉发起失败"),
    AuditFailure(3004,"审核失败"),
    UpClassesFail(3005,"新增课程失败"),
    addClassesCoachFail(3006,"排教练课程失败"),
    getClaessIdFail(3007,"课程不存在"),
    getAllAppealFail(3008,"查询所有申诉记录失败"),
    byClassesOrderFail(3009,"下单失败"),
    getClassesOrderFail(3010,"该订单不存在"),
    TheOrderUnpaidOvertime(3011,"订单超时未支付"),
    ChangeOrederStateFail(3012,"修改订单状态失败"),
    findVenueIdFali(3013,"通过场馆账号id查询场馆信息id失败"),
    findCoachIdFali(3014,"通过教练账号id查询教练信息id失败"),
    NoHaveClassesOrder(3015,"暂无订单"),
    timeoutTakeOrders(3016,"超时未接单,已取消"),
    VenueDontAnswerOrders(3017,"该状态不能接单"),
    DontRefusedOrders(3018,"该状态不能拒单"),
    AttachmentSaveFail(3019,"附件表保存失败"),
    commonentSaveFail(3020,"附件表保存失败"),
    OrderHasBeenEvaluated(3021,"订单已经评价,只能评价一次"),
    EvaluationHasBeenReplyTo(3022,"订单已经回复,只能回复一次"),
    RespondTOfailure(3023,"回复失败"),
    Noevaluation(3024,"暂无订单评价"),
    FindMoneyByAccountIdFail(3025,"账号id查询钱包余额失败"),
    LackOFBalance(3026,"余额不足或已下单金额大于钱包金额,请先充值"),
    ThereIsNoVenue(3027,"该场馆不存在"),
    ThereIsNoCoach(3028,"该教练不存在"),
    ThereIsNoStudent(3029,"该学员不存在"),
    findStudentIdFail(3030,"通过学员账号id查询学员信息id失败"),
    OrderDoesNotBelongToTheVenues(3031,"该订单不属于该场馆,无法接单"),
    PenaltyDeductionsFailure(3032,"违约金扣款失败"),
    OrderDoesNotBelongToTheCoach(3033,"该订单不属于该教练,无法接单"),
    CoachVenueNoContractRelationship(3034,"该场馆教练无签约关系"),
    TheStateCantClickFinish(3035,"该状态不能点击订单完成"),
    CoachStudentsSigningRelationshipFailure(3036,"教练学员签约关系失败"),
    SendANotificationFailure(3037,"发送通知失败"),
    TheStateCantCancelTheOrder(3038,"该状态不能取消订单"),
    AutomaticDeductionsFailure(3039,"自动扣款失败"),
    TheStateCantPay(3040,"该状态不能支付"),
    findVenueAccountIdFali(3041,"通过场馆信息id查询场馆账号id失败"),
    findCoachAccountIdFali(3042,"通过教练信息id查询教练账号id失败"),
    findStudentAccountIdFali(3043,"通过学员信息id查询学员账号id失败"),
    TheOrderNotBelongToThisCoach(3045,"该订单不属于该教练，无法确认上课完成"),
    TheStateCantEvaluation(3046,"订单只能在已完成状态才可以评价"),
    findCoachMessageFail(3047,"通过教练信息id查询教练对象失败"),
    findVenueMessageFail(3048,"通过场馆信息id查询场馆对象失败"),
    CourseOfTimeConflict(3049,"课程时间冲突"),
    ThisCourseHasBeenReservation(3050,"该课程已被预约"),
    ModifyTheCurriculumStatusfailed(3051,"修改课程表状态失败"),
    TheNewCurriculumFailure(3052,"新增课程表失败"),
    ClassTimeMustBegreaterThanTheCurrentTime(3053,"上课时间必须大于当前时间"),
    OrderCanOnlyAppealAgain(3054,"订单只能申诉一次,该订单已经发起过申诉"),
    TheVenueToInsufficient(3055,"场馆余额不足"),
    TheOrderNoAppeal(3056,"订单暂未申诉");

    private Integer code;
    private String message;

    private EnumExceptionCode(Integer code, String message){
            this.code=code;
            this.message=message;
    }

    private EnumExceptionCode(EnumExceptionCode e){

        this.code=e.getCode();
        this.message=e.message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }



}
